package com.mayblackcat.dy.entity;

import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode
public class Video implements Serializable {
    private static final long serialVersionUID = 1L;
    private long id;
    private String title;
    private String content;
    private long likes;
    private String description;
    private long commentCount;
    private long videoUserId;
    private String videoUserAvatar;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
